from django.conf.urls.defaults import patterns
from django.contrib.auth.decorators import login_required

urlpatterns = patterns('mmorganizer.characters.views',
    (r'^create/', 'create'),
    (r'^list/', 'list'),
    (r'^roster/list/(?P<character_id>\d+)', 'list_roster_for_character'),
    (r'^roster/list/', 'list_roster'),
    (r'^roster/create/', 'create_roster'),
    (r'^ajax_get_associated_roles/', 'get_associated_roles'),
    (r'^roster/join/(?P<character_id>\d+)/(?P<roster_id>\d+)', 'join_roster'),
    (r'^roster/join/(?P<character_id>\d+)', 'select_roster_to_join'),
    (r'^roster/members/(?P<roster_id>\d+)/(?P<character_id>\d+)/(?P<action>\w+)', 'valider_membreEnAttente_roster'),
    (r'^roster/members/remove/(?P<roster_id>\d+)/(?P<character_id>\d+)', 'supprimer_membre_roster'),
    (r'^roster/members/(?P<roster_id>\d+)', 'list_membres_roster'),
    (r'^select/(?P<personnage_id>\d+)','select_personnage'),
)
